<div ng-include="'views/template/search.html'"></div>

<div class="lists-box lists-trade" ng-if="jsons">
    <h1>{{ name }}</h1>

    <div class="c-list">
        <div class="tit red">红榜</div>
        <div class="table-box">
            <table>
                <thead>
                <th class="one">Top</th>
                <th class="two">名称</th>
                <th class="thr">平台</th>
                <th class="four">等级</th>
                </thead>
                <tbody>
                    <tr ng-repeat="item in jsons.redRank" ng-click="goPage('/detail/'+item['platform-type']+'/'+item['directory-code'])">
                        <td>{{ item.rank }}</td>
                        <td>{{ item['platform-name'] }}</td>
                        <td>{{ item['platform-type']=='website'?'网站':item['platform-type'] }}</td>
                        <td>{{ item['score-total'] | gradeFilter }}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <div class="c-list">
        <div class="tit black">黑榜</div>
        <div class="table-box">
            <table>
                <thead>
                <th class="one">Bottom</th>
                <th class="two">名称</th>
                <th class="thr">平台</th>
                <th class="four">等级</th>
                </thead>
                <tbody>
                    <tr ng-repeat="item in jsons.blackRank" ng-click="goPage('/detail/'+item['platform-type']+'/'+item['directory-code'])">
                        <td>{{ item.rank }}</td>
                        <td>{{ item['platform-name'] }}</td>
                        <td>{{ item['platform-type']=='website'?'网站':item['platform-type'] }}</td>
                        <td>{{ item['score-total'] | gradeFilter }}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

    <a class="btn-show" ng-click="goPage('/tradeall/'+name)">查看全部企业排行</a>

    <a class="btn-show" href="javascript: history.back();" ng-if="!rules">返回上一页</a>
</div>